/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.sdd.facades.view;

import com.sdd.plains.CategoryPlain;
import java.util.List;
import javax.ejb.Remote;


/**
 *
 * @author tpgalan
 */
@Remote
public interface CategoryViewFacade {
    
    public CategoryPlain getCategory(long categoryId);
    public CategoryPlain addCategory(CategoryPlain categoryPlain);
    public CategoryPlain addCategoryWithFather(CategoryPlain categoryPlain, CategoryPlain father);
    public List<CategoryPlain> getAllMainCategories();
    public List<CategoryPlain> getAllMainCategoriesWithCB();
    public List<CategoryPlain> getChildCategories(CategoryPlain cp);
    public CategoryPlain getCategory(String name);
}
